package com.ruoyi.voucher.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证红冲记录对象 voucher_reversal
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class VoucherReversal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 红冲ID */
    @TableId(type = IdType.AUTO)
    private Long reversalId;

    /** 原凭证ID */
    @Excel(name = "原凭证ID")
    private Long originalVoucherId;

    /** 凭证字号 */
    @Excel(name = "凭证字号")
    private String voucherNo;

    /** 开票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开票日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voucherDate;

    /** 账期YYYYMM */
    @Excel(name = "账期YYYYMM")
    private String accountPeriod;

    /** 附单据数量 */
    @Excel(name = "附单据数量")
    private Long attachmentCount;

    /** 剩余可冲销金额 */
    @Excel(name = "剩余可冲销金额")
    private BigDecimal remainingAmount;

    /** 合计金额 */
    @Excel(name = "合计金额")
    private BigDecimal totalAmount;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 作废状态 */
    @Excel(name = "作废状态")
    private Integer isVoid;

    /** 作废时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "作废时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voidTime;

    /** 红冲时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "红冲时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reversalTime;

    /** 账套ID */
    @Excel(name = "账套ID")
    private Long accountId;

    /** 凭证字ID */
    @Excel(name = "凭证字ID")
    private Long wordId;







    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDeleted;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;


}
